export function getUrl (str) {
  console.log(weex, 'weex')
  console.log(weex.config.env.platform)
  if (weex.config.env.platform === 'Web') {
    return './web/assets/' + str
  } else {
    return 'local:///' + str.split('.')[0]
  }
}
